﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeaven.Web.Common;
using FortuneHeavenBAL;
using FortuneHeavenCommon.DataMap;

namespace FortuneHeaven.Web.Pages.UserCenter
{
    public partial class UploadUserImg : CheckAuthPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SetPageHeader(FortuneHeavenCommon.Enum.MainPageTabType.hidden);
            ltName.Text = AuthorityCenter.CurrentUserName;
            if (AuthorityCenter.CurrentUserID > 0)
            {
                AccountsInfoBO acountbo = new AccountsInfoBO();
                AccountsInfo acount = acountbo.GetAcount(AuthorityCenter.CurrentUserID);
                if (acount.MemberOrder <= 0 || acount.MemberOrder > 3)
                {
                    ClientScript.RegisterStartupScript(this.GetType(), "inforlogin", string.Format("alert('你不是会员,请开通会员!');document.location='{0}'; ", VirtualPathUtility.ToAbsolute("~/Pages/Shop/EquipPurchase.aspx")), true);
                }
            }
        }
    }
}